package exception;


public class NoSuchDatabaseException extends Exception {

	private final static String MESSAGE_FORMAT_NAME = "Could not find a database with name: %s.";
	private final static String MESSAGE_FORMAT_ID = "Could not find a database with id: %d.";
	
	private String message;
	
	public NoSuchDatabaseException(String databaseName){
		this.message = String.format(MESSAGE_FORMAT_NAME,databaseName);
	}
	
	public NoSuchDatabaseException(int databaseId) {
		this.message = String.format(MESSAGE_FORMAT_ID,databaseId);
	}
	
	@Override
	public String getMessage(){
		return message;
	}	
	
	private static final long serialVersionUID = -2743625469546143100L;

}
